package com.bus.service;

import com.bus.entity.Goods;
import com.common.DataGridView;
import com.bus.vo.GoodsVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsService {
    DataGridView selectAllGoods(GoodsVo goodsVo);

    List<Goods> selectAllById(String providerName);

    List<Goods> selectPrice(String goodsName);

    int save(GoodsVo goodsVo);

    Goods getById(Integer goodsId);

    int updateById(GoodsVo goodsVo);

    int deleteById(Integer goodsId);

    void deleteByIds(List<Integer> ids);

    List<Goods> selectGoodsById(Integer providerId);

    List<Goods> selectGoods();

    int updateNum(@Param("goodsId") Integer goodsId, @Param("num") Integer num);
}
